package com.example.news.pojo.form;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;

@Data
@Schema(description = "评论表单")
public class CommentForm {
    @NotEmpty(message = "新闻id不能为空")
    private Integer articleId;
    @NotEmpty(message = "评论者id不能为空")
    private Integer userId;
    @NotEmpty(message = "内容不能为空")
    private String content;
    @Schema(description = "父评论id(一级评论传0)")
    private Integer parentId;
    @Schema(description = "一级评论id(一级评论传0)")
    private Integer firstCommentId;
}
